package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "user_role")
public class UserRole {
    @Id
    @Column(name = "user_id")
    private int user_id;

    @Id
    @Column(name = "role_id")
    private int role_id;

    @Column(name = "created")
    private Date created;

    @Column(name = "updated")
    private Date updated;


    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }


    @Override
    public String toString() {
        return "UserRole{" +
                "user_id=" + user_id +
                ", role_id=" + role_id +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }
}
